package com.dragon.modules.yuegou.mapper.park;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.park.StatisticsTotalEntity;
import com.dragon.modules.yuegou.model.park.StatisticsTotal;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
/**
 * 停车统计汇总表 Mapper接口
 *
 * @author pbuilder generated
 * @date 2020-03-19 16:43:52
 * @version 2.0
 */
@Component("parkStatisticsTotalMapper")
public interface StatisticsTotalMapper extends BaseMapper<StatisticsTotalEntity> {

    /***
     * 得到最近的数据，所传递的参数皆是必传
     * @param merchantId
     * @param begin
     * @param end
     * @return
     */
    StatisticsTotal getRecentlyStatisticsTotal(@Param("merchantId")String merchantId, @Param("begin")String begin,@Param("end") String end);

    List<StatisticsTotal> getHotelParkingRecord(@Param("begin")String begin, @Param("end") String end);
}
